﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Ogamesystem 的摘要说明
/// </summary>
public class Ogamesystem
{
	public Ogamesystem()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
    #region 登录小游戏
    /// <summary>
    /// 登录小游戏
    /// </summary>
    /// <param name="UserId">用户IDX</param>
    /// <param name="NickName">昵称</param>
    /// <param name="GameID">游戏ID</param>
    /// <param name="RegIP">登录IP</param>
    /// <returns>DataRow</returns>
    public static DataRow LoginReg(int UserId, string NickName, int GameID, string RegIP)
    {
        return  (new Ogame()).LoginReg(UserId, NickName, GameID, RegIP);
    }

    #endregion

    #region 修改积分
    /// <summary>
    /// 修改积分
    /// </summary>
    /// <param name="UserId">用户IDX</param>
    /// <param name="gameID">游戏ID</param>
    /// <param name="point">积分</param>
    /// <returns></returns>
    public static bool UpdatePoint(int UserId, int gameID, int point,int gameindex)
    {
        return (new Ogame()).UpdatePoint(UserId, gameID, point, gameindex);
    }

    #endregion

    #region 排行榜

    /// <summary>
    /// 排行榜
    /// </summary>
    /// <param name="gameID"></param>
    /// <returns></returns>
    public static DataTable GetRank(int gameID)
    {
        return (new Ogame()).GetRank(gameID);
    }

    #endregion

    #region 检查金额是否超限
    public static long GetLoseMoney(int UserId)
    {
        return (new Ogame()).GetLoseMoney(UserId);
    }
    #endregion
}
